package com.itheima.health.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AliyunOssScanClean {
    @Scheduled(cron = "0 0 2 * * ?")//*/5 * * * * ?0 0 2 * * ?
    @CacheEvict(value = "memberReportCache",allEntries = true)
    public void clean(){
        log.info("清理缓存会员数据.......");
    }
}
